<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../pccommon.jsp"%>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>银行卡</title>
<link type="text/css" rel="stylesheet" href="${staticPath}/pccss/grzx.css" />
</head>
<body>
	<input type="hidden" value="${bankcard.id}" id="id"/>
	<div id="wrapper">
		<c:import url="../layout/header2.jsp"></c:import>
		<div id="main">
			<div id="mainw">
				<c:import url="../layout/leftNav.jsp">
					<c:param name="leftNav" value="money" />
				</c:import>
				<div class="mainw_right">
					<div class="mainw_right1">
						<img src="${staticPath}/pcimages/a1.png" />
						<h1>添加银行卡</h1>
					</div>
					<div class="mainw_right4">
						<label>发卡银行：</label>
						<select id="bankId">
							<option value="0" <c:if test="${bankId==0 }">selected="selected"</c:if>>请选择：</option>
							<c:forEach items="${bankList}" var="bank">
								<option value="${bank.id}" <c:if test="${bankId==bank.id }">selected="selected"</c:if>>${bank.name}</option>
							</c:forEach>
						</select>
					</div>
					<div class="mainw_right4">
						<label>开户支行：</label>
						<input id='branch' type="text" value="${bankcard.branch}" />
					</div>
					<div class="mainw_right4">
						<label>银行卡号：</label>
						<input id='bankCode' type="text" value="${bankcard.bankCode}" />
					</div>
					<div class="mainw_right4">
						<label>姓名：</label>
						<input id='cardholder' type="text" name="" value="${bankcard.cardholder}" />
					</div>
					<div class="mainw_right4" style="margin-left:50px;">
						<label>设置为默认银行卡：</label>
						<input id='isDefault' type="checkbox"  style="width:20px;height:20px;margin-top:15px;" <c:if test="${bankcard.isDefault==1}">checked</c:if> />
					</div>
					<div class="mainw_right5">
						<span></span>
						<input type="button" name="" value="确 定" onclick="saveBankcard();"/>
						<span style="background: url(${staticPath}/pcimages/btn3.png) no-repeat;"></span>
					</div>

				</div>
				<!--mainw_right end-->
			</div>
		</div>
		<div style="clear: both;"></div>
		<!--main end-->
		<c:import url="../layout/footer.jsp"></c:import>
	</div>
	<!--wrapper end-->
</body>

<script type="text/javascript" src="${staticPath}/js/app/bankcard/pcbankcard.js"></script>
</html>

